package example;
import facecat.FaceCatScript;
import facecat.topin.core.*;
import facecat.topin.xml.*;
import facecat.topin.tab.*;
import facecat.topin.div.*;
import facecat.topin.btn.*;

/*
 * 组合框示例
 */
public class GroupBoxExample extends FCUIXml
{
    /*
     * 加载Xml
     * @param fileName 文件名
     * @param view 视图名称
     */
   public void loadXml(String fileName, FCView view)
   {
       setScript(new FaceCatScript(this));
       super.loadXml(fileName, view);
       //获取第二页
       FCTabPage tabPage = getTabPage("TabPage2");
       FCGroupBox groupBox = new FCGroupBox();
       groupBox.setText("GroupBox2");
       FCButton button = new FCButton();
       groupBox.setLocation(new FCPoint(10, 10));
       groupBox.setSize(new FCSize(400, 300));
       tabPage.addView(groupBox);

       FCButton button1 = new FCButton();
       button1.setText("Button1");
       button1.setLocation(new FCPoint(100, 100));
       button1.setSize(new FCSize(100, 20));
       groupBox.addView(button1);
   }
}